home *** CD-ROM | disk | FTP | other *** search
/ Inter.Net 55-1 / Inter.Net 55-1.iso / CBuilder / Setup / BCB / data.z / utime.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-02-09  |  1.4 KB  |  79 lines

  1. /*  utime.h
  2.  
  3.     Definitions for utime() function.
  4.  
  5. */
  6.  
  7. /*
  8.  *      C/C++ Run Time Library - Version 9.0
  9.  *
  10.  *      Copyright (c) 1991, 1998 by Borland International
  11.  *      All Rights Reserved.
  12.  *
  13.  */
  14. /* $Revision:   9.2  $ */
  15.  
  16. #ifndef __UTIME_H
  17. #define __UTIME_H
  18.  
  19. #ifndef ___STDDEF_H
  20. #include <_stddef.h>
  21. #endif
  22.  
  23. #if !defined(RC_INVOKED)
  24.  
  25. #if defined(__STDC__)
  26. #pragma warn -nak
  27. #endif
  28.  
  29. #pragma pack(push, 1)
  30.  
  31. #endif  /* !RC_INVOKED */
  32.  
  33.  
  34. #ifndef  _TIME_T
  35. #define  _TIME_T
  36. typedef long time_t;
  37. #endif
  38.  
  39. /* Structure passed to utime containing file times
  40.  */
  41. struct utimbuf
  42. {
  43.         time_t  actime;         /* access time (not used on DOS) */
  44.         time_t  modtime;        /* modification time */
  45. };
  46.  
  47. #ifdef __cplusplus
  48. extern "C" {
  49. #endif
  50.  
  51. int    _RTLENTRY _EXPFUNC _utime(const char * __path,
  52.                                  const struct utimbuf *__times);
  53. int    _RTLENTRY _EXPFUNC _wutime(const wchar_t * __path,
  54.                                   const struct utimbuf *__times);
  55.  
  56. #if !defined(__STDC__)
  57. int    _RTLENTRY _EXPFUNC utime(const char * __path,
  58.                                 const struct utimbuf *__times);
  59. #endif
  60.  
  61. #ifdef __cplusplus
  62. }
  63. #endif
  64.  
  65.  
  66. #if !defined(RC_INVOKED)
  67.  
  68. #pragma pack(pop)       /* restore default packing */
  69.  
  70. #if defined(__STDC__)
  71. #pragma warn .nak
  72. #endif
  73.  
  74. #endif  /* !RC_INVOKED */
  75.  
  76.  
  77. #endif  /* __UTIME_H */
  78.  
  79.